import request from '../../utils/request';
import { OnionUtils } from '../../utils/onion-utils';

//查询租户信息列表
export const doFindTenant = queryData => {
    return request({
        url: '/api/resic/tenant/listPage',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'queryData'},
        buildType : 'queryData',
        data: queryData
    });
};

//保存租户信息
export const doSaveTenant = formData => {
    return request({
        url: '/api/resic/tenant/save',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        data: formData
    });
};

//获取租户信息
export const doGetTenant = paramData => {
    return request({
        url: '/api/resic/tenant/get',
        method: 'post',
        header:{'Content-Type':'application/json', 'Build-Type':'formData'},
        data: paramData
    });
};

//删除租户
export const doDeleteTenant = paramData => {
    return request({
        url: '/api/resic/tenant/delete',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        data: paramData
    });
};